package chan.project.service;

import chan.project.model.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import chan.project.model.entity.TravelPlanThumb;

/**
 * 旅行计划点赞服务
 *
 * @author <a href="https://github.com/kavansp">kavansp</a>
 *
 */
public interface TravelPlanThumbService extends IService<TravelPlanThumb> {

    /**
     * 点赞
     *
     * @param postId
     * @param loginUser
     * @return
     */
    int doTravelPlanThumb(long postId, User loginUser);

    /**
     * 帖子点赞（内部服务）
     *
     * @param userId
     * @param postId
     * @return
     */
    int doTravelPlanThumbInner(long userId, long postId);
}
